package com.gl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gl.entity.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-12-14
 */
public interface TOrderService extends IService<TOrder> {
    //分页查询订单信息
    public Map<String,Object> getPageList(long current, long size);
    //立即购买课程，生成订单，返回生成的订单号
    String saveOrder(TOrder order, HttpServletRequest request);
    //查订单列表
    Map<String,Object> getOrderList(Page<TOrder> page, TOrder order);
}
